/*
CREATE TABLE "base_tax_reform_file" (
  "sequence_nbr" integer(20) NOT NULL,
  "taxation_method_type" integer(4),
  "taxation_method_name" text(10),
  "tax_reform_file_name" text(20),
  "output_tax_rate" real(16,6),
  "input_tax_rate" real(16,6),
  "simple_tax_rate" real(16,6),
  "area_id" integer(20),
  "rec_user_code" text(32),
  "rec_status" text(4),
  "rec_date" integer(20),
  "extend1" text(64),
  "extend2" text(64),
  "extend3" text(64),
  "description" text(255),
  "agency_code" text(64),
  "product_code" text(64),
  PRIMARY KEY ("sequence_nbr")
);
*/

use rbatis::crud;
use serde::{Deserialize, Serialize};

#[derive(Debug, Serialize, Deserialize)]
pub struct BaseTaxReformFile {
    pub sequence_nbr: String,
    pub taxation_method_type: Option<i32>,
    pub taxation_method_name: Option<String>,
    pub tax_reform_file_name: Option<String>,
    pub output_tax_rate: Option<f64>,
    pub input_tax_rate: Option<f64>,
    pub simple_tax_rate: Option<f64>,
    pub area_id: Option<i32>,
    pub rec_user_code: Option<String>,
    pub rec_status: Option<String>,
    pub rec_date: Option<String>,
    pub extend1: Option<String>,
    pub extend2: Option<String>,
    pub extend3: Option<String>,
    pub description: Option<String>,
    pub agency_code: Option<String>,
    pub product_code: Option<String>,
}
crud!(BaseTaxReformFile {}, "base_tax_reform_file");
